﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Web.Mvc;
namespace DroidClaim.Web.Models
{
	public class CustomerModel
	{
		
			    
					 
						[DisplayName("Id")]
						public int Id { get; set; }
									 
					 
						[Required]
						[StringLength(16, ErrorMessage = "LicensePlate cannot be longer than 16 characters.")]
						[DisplayName("License Plate")]
						public String LicensePlate { get; set; }
									 
					 
						[Required]
						[StringLength(64, ErrorMessage = "Salt cannot be longer than 64 characters.")]
						[DisplayName("Salt")]
						public String Salt { get; set; }
									 
					 
						[Required]
						[StringLength(64, ErrorMessage = "Name cannot be longer than 64 characters.")]
						[DisplayName("Name")]
						public String Name { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "Surname cannot be longer than 64 characters.")]
						[DisplayName("Surname")]
						public String Surname { get; set; }
									 
					  
						[StringLength(16, ErrorMessage = "Mobile cannot be longer than 16 characters.")]
						[DisplayName("Mobile")]
						public String Mobile { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "Email cannot be longer than 64 characters.")]
						[DisplayName("Email")]
						public String Email { get; set; }
									 
					  
						[StringLength(0, ErrorMessage = "CustImgPath cannot be longer than 0 characters.")]
						[DisplayName("Customer Image Path")]
						public String CustImgPath { get; set; }
									 
					 
						[Required]
						[StringLength(16, ErrorMessage = "Password cannot be longer than 16 characters.")]
						[DisplayName("Password")]
						public String Password { get; set; }
									 
					  
						[StringLength(512, ErrorMessage = "CarImgPath cannot be longer than 512 characters.")]
						[DisplayName("CarImgPath")]
						public String CarImgPath { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "CarBrand cannot be longer than 64 characters.")]
						[DisplayName("CarBrand")]
						public String CarBrand { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "CarModel cannot be longer than 64 characters.")]
						[DisplayName("CarModel")]
						public String CarModel { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "InsurancePackage cannot be longer than 64 characters.")]
						[DisplayName("InsurancePackage")]
						public String InsurancePackage { get; set; }
									 
											[Required]
						[StringLength(255, ErrorMessage = "Code cannot be longer than 255 characters.")]
						[Remote("doesCodeExist", "Customer", HttpMethod = "POST", AdditionalFields = "Mode, OldValue", ErrorMessage = "Code already exists. Please enter a different Code")]
						[DisplayName("Code")]
						public String Code { get; set; }
													public List<CustomerModel> ListOfCustomer { get; set; }
	}
}